<!-- 1903010328 查询通行证 -->
<?php
include "../../inc/log/adsession.php";
include "../../inc/data/connAdmin.php"
?>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<?php
		$taskId=$_GET["taskid"];
	 	$taskTerm=$_POST["term"];
		$taskTime=$_POST["tasktime"];

		$sql1="update mamx_task
			   set taskterm=?,tasktime=?
			   where taskid=?";
		$stmt1=$conn->prepare($sql1);
		$stmt1->bind_param("ssi",$taskTerm,$taskTime,$taskId);
		$stmt1->execute();
		if ($stmt1->affected_rows>0) {
			echo <<<END
			<script type="text/javascript">
			alert("教学任务修改成功！");
			location="taskAdmin.php";
			</script>
END;
			}
			//echo $stmt->affected_rows;	
		// }
	?>
</body>
</html>